﻿<UserControl x:Class="KinectCurve.View.ucHead"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    mc:Ignorable="d"
    xmlns:local="clr-namespace:KinectCurve"
    DataContext="{Binding Source={x:Static local:ViewModelLocator.MainStatic}}"
    d:DesignHeight="40" d:DesignWidth="800">
    <Grid Background="Black">
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="100" />
        </Grid.ColumnDefinitions>
        
        <TextBlock Text="{Binding GameTitle}" Foreground="White" FontSize="18" Margin="20,8,0,0" />

        <StackPanel Orientation="Horizontal" Grid.Column="1" Margin="0,10,0,0" Visibility="{Binding IsGameInProgressVisibility}">
            <TextBlock Text="Time: " Foreground="White" />
            <TextBlock Text="{Binding TimeToPlay}" Foreground="White" />
        </StackPanel>
    </Grid>
</UserControl>
